package com.easy.frame.common.process.util.mapping;

import com.easy.frame.common.process.entity.template.Process;
import com.easy.frame.common.process.entity.template.ProcessCondition;
import com.easy.frame.common.process.entity.template.ProcessNode;
import com.easy.frame.common.process.entity.template.dto.ProcessAddDetailDTO;
import com.easy.frame.common.process.entity.template.dto.ProcessConditionAddDTO;
import com.easy.frame.common.process.entity.template.dto.ProcessNodeAddDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 流程业务相关对象转换类
 *
 * @author zzf
 * @date 2021/4/8 9:01
 */
@Mapper
public interface ProcessBizMapping {

    ProcessBizMapping INSTANCE = Mappers.getMapper(ProcessBizMapping.class);

    Process process(ProcessAddDetailDTO processAddDetailDTO);

    ProcessNode node(ProcessNodeAddDTO processNodeAddDTO);

    ProcessCondition condition(ProcessConditionAddDTO processConditionAddDTO);

}
